package org.dromara.system.domain.bo;

import org.dromara.system.domain.XcxUser;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 小程序用户业务对象 xcx_user
 *
 * @author maoningchuan
 * @date 2025-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XcxUser.class, reverseConvertGenerate = false)
public class XcxUserBo extends BaseEntity {

    /**
     * 小程序用户ID
     */
    private Long userId;

    /**
     * 关联用户ID
     */
    @NotNull(message = "关联用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sysUserId;

    private String xcxUserType;
    /**
     * 租户编号
     */
    private String openId;

    /**
     * 头像地址
     */
    private String avatarUrl;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 证件类型
     */
    @NotBlank(message = "证件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idcardType;

    /**
     * 证件号
     */
    @NotBlank(message = "证件号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idcardNum;

    /**
     * 性别
     */
    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 出生年月
     */
    @NotNull(message = "出生年月不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date birthday;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phonenumber;

    /**
     * 工作单位
     */
    @NotBlank(message = "工作单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workCompanyName;

    /**
     * 单位性质
     */
    @NotBlank(message = "单位性质不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workCompanyType;

    /**
     * 所属区县
     */
    @NotBlank(message = "所属区县不能为空", groups = { AddGroup.class, EditGroup.class })
    private String quxian;

    /**
     * 所属乡镇
     */
    @NotBlank(message = "所属乡镇不能为空", groups = { AddGroup.class, EditGroup.class })
    private String xiangzhen;

    /**
     * 毕业院校
     */
    @NotBlank(message = "毕业院校不能为空", groups = { AddGroup.class, EditGroup.class })
    private String graduateFrom;

    /**
     * 专业名称
     */
    @NotBlank(message = "专业名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String major;

    /**
     * 毕业时间
     */
    @NotNull(message = "毕业时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date graduateDate;

    /**
     * 学习形式
     */
    @NotBlank(message = "学习形式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String learningForms;

    /**
     * 学历
     */
    @NotBlank(message = "学历不能为空", groups = { AddGroup.class, EditGroup.class })
    private String degree;

    /**
     * 新奉节人才等级
     */
    @NotBlank(message = "新奉节人才等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newFengjieTalentLevel;

    /**
     * 符合新重庆人才标准
     */
    @NotBlank(message = "符合新重庆人才标准不能为空", groups = { AddGroup.class, EditGroup.class })
    private String meetChongqingTalentDesc;

    /**
     * 符合新奉节人才标准
     */
    @NotBlank(message = "符合新奉节人才标准不能为空", groups = { AddGroup.class, EditGroup.class })
    private String meetFengjieTalentDesc;

    /**
     * 人才证明资料
     */
    @NotBlank(message = "人才证明资料不能为空", groups = { AddGroup.class, EditGroup.class })
    private String provePapers;

    /**
     * 证书（称号）名称
     */
    @NotBlank(message = "证书（称号）名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String talentPaperName;

    /**
     * 证书（称号）获取时间
     */
    @NotNull(message = "证书（称号）获取时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date talentPaperDate;

    /**
     * 专业技术职称
     */
    @NotBlank(message = "专业技术职称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String professionalSkillLevel;

    /**
     * 职业技能等级
     */
    @NotBlank(message = "职业技能等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skillTalentType;

    /**
     * 行业类别
     */
    @NotBlank(message = "行业类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hangyeType;

    /**
     * 产业链类别
     */
    @NotBlank(message = "产业链类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String industryCategory;

    /**
     * 岗位类别
     */
    @NotBlank(message = "岗位类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobCategory;

    /**
     * 单位联络员
     */
    @NotBlank(message = "单位联络员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workLiaisonName;

    /**
     * 单位联络员电话
     */
    @NotBlank(message = "单位联络员电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workLiaisonPhone;

    /**
     * 服务专员
     */
    @NotBlank(message = "服务专员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceLiaisonName;

    /**
     * 服务专员电话
     */
    @NotBlank(message = "服务专员电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceLiaisonPhone;

    /**
     * 行业主管部门
     */
    @NotBlank(message = "行业主管部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manageWorkName;

    /**
     * 行业主管部门ID
     */
    @NotNull(message = "行业主管部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long manageWorkId;

    /**
     * 填报人单位
     */
    @NotBlank(message = "填报人单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String submitWorkName;

    /**
     * 填报人单位ID
     */
    @NotNull(message = "填报人单位ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long submitWorkId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 认定标准
     */
    @NotBlank(message = "认定标准不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accreditationCriteria;

    /**
     * 到期日期
     */
    @NotNull(message = "到期日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expireDate;


}
